<div class="row m-n">
    <div class="crumbs-bar">
        <div yb-crumbs></div>
    </div>
    <div tabset type="tab">
        <div tab heading="领料单" active="activeFlag[0]" ng-click="changeTab(0)">
            <div class="row wrapper-y-sm">
                <div class="operate-bar col-xs-6 font-0">
                    <button class="btn btn-operate m-r-sm" ng-click="pickingIn()"
                        ng-disabled="!btnPermission.pickingBillInAdd"
                        title="{{!btnPermission.pickingBillInAdd?'无权限执行此操作':''}}">备件从生产领料</button>                        
                    <button class="btn btn-operate m-r-sm" ng-click="pickingOut()"
                        ng-disabled="!btnPermission.pickingBillOutAdd"
                        title="{{!btnPermission.pickingBillOutAdd?'无权限执行此操作':''}}">生产从备件领料</button>
                    <button class="btn btn-operate m-r-sm" ng-click="delData('batch')"
                        ng-disabled="!btnPermission.pickingBillDel"
                        title="{{!btnPermission.pickingBillDel?'无权限执行此操作':''}}">删除</button>
                    <button class="btn btn-operate m-r-sm" ng-click="auditBillBatch()" ng-disabled="!btnPermission.pickingBillAudit"
                        title="{{!btnPermission.pickingBillAudit?'无权限执行此操作':''}}">批量审核</button>
                    <button class="btn btn-operate" ng-click="batchPrint()" ng-disabled="!btnPermission.pickingBillPrint"
                        title="{{!btnPermission.pickingBillPrint?'无权限执行此操作':''}}">批量打印</button>
                    <button class="btn btn-operate m-r-sm"  style="margin-left:10px" ng-click="delHistory()">已删除</button>  
                    
                    <button class="btn btn-operate m-r-sm" ng-click="batchPosting()" translate>批量过账</button>
                    <button class="btn btn-operate m-r-sm" ng-click="batchReserve()" translate>批量创建预留</button>
                </div>
                <div class="search-bar wrapper-none col-xs-6">
                    <div class="btn-group m-l-xs pull-right">
                        <button type="button" class="btn btn-default base-color" ng-click="search()" title="刷新">
                            <i class="yb-icon ico-refresh"></i>
                        </button>
                        <button type="button" class="btn btn-default base-color" title="配置表格列"
                            ng-click="switchToolbar('ColConfig');">
                            <i class="yb-icon ico-set"></i>
                        </button>
                        <div class="btn btn-default base-color" ng-if="!!btnPermission.pickingBillExport">
                            <div title="导出">
                                <i class="yb-icon ico-export-o"></i>
                            </div>
                            <ul class="more-tool">
                                <li yb-download download-url="exportParam.sectionUrl"
                                    download-param="exportParam.sectionParam" download-key="ids">
                                    <i class="yb-icon ico-export-o"></i> 导出
                                </li>
                                <li yb-download download-url="exportParam.allUrl" download-param="condition" download-duration="3">
                                    <i class="yb-icon ico-export-o"></i> 导出全部
                                </li>
                            </ul>
                        </div>
                    </div>
                    <button class="btn-advance pull-right m-l-xs"
                        ng-click="switchToolbar('AdvanceSearch')">高级搜索</button>
                    <div class="input-group pull-right clearfix">
                        <input type="text" class="form-control txt-search" placeholder="领料单号"
                            ng-model="condition.requisitionNo">
                        <span class="input-group-addon cursor-pointer" ng-click="search(1)">搜索</span>
                    </div>
                </div>
            </div>
            <div yb-advance-search show-toolbar="toolbarConfig.showAdvanceSearch" search-data="search(1)"
                reset-data="reset()">
                <div class="advance-search m-t-sm">
                    <div class="form-group clearfix">
                        <label class="control-label">领料单号：</label>
                        <input type="text" name="saleNo" ng-model="condition.requisitionNo" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">零件号：</label>
                        <input type="text" name="saleNo" ng-model="condition.materialsNo" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">领入过账状态：</label>
                        <input type="text" name="postInStatus" ng-model="condition.postInStatus" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">领出过账状态：</label>
                        <input type="text" ng-model="condition.postOutStatus" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">移入仓库：</label>
                        <input type="text" name="materialsNo" ng-model="condition.inLocation" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">移出仓库：</label>
                        <input type="text" name="materialsNo" ng-model="condition.outLocation" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">出入库状态：</label>
                        <select name="materialsType" class="form-control" ng-model="condition.status"
                            ng-options="item.id as item.name for item in statusList" required yb-focus>
                            <option value="">请选择</option>
                        </select>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">过账状态：</label>
                        <select name="status" class="form-control" ng-model="condition.postStatus">
                            <option value="">请选择</option>
                            <option value="0">未过账</option>
                            <option value="1">部分过账</option>
                            <option value="2">已过账</option>
                        </select>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">是否回执：</label>
                        <select name="returnStatus" class="form-control" ng-model="condition.isReceipt">
                            <option value="">请选择</option>
                            <option value="1">是</option>
                            <option value="0">否</option>
                        </select>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">制单人：</label>
                        <input type="text" ng-model="condition.createName" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">制单部门：</label>
                        <input type="text" ng-model="condition.createPartName" class="form-control">
                    </div>
                    <div class="form-group clearfix m-b-none">
                        <label class="control-label">制单时间：</label>
                        <input type="text" class="form-control date-picker" ng-model="condition.createDateStart"
                            datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDataPicker(0)"
                            is-open="datePickerFlag[0]" close-text="关闭"
                            ng-change="checkDate(condition, 'createDateStart', 'createDateEnd')" modal-size="small"
                            readonly>
                    </div>
                    <div class="form-group clearfix m-b-none">
                        <label class="control-label"></label>
                        <label class="control-label wave-line">~</label>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"></label>
                        <input type="text" class="form-control date-picker" ng-model="condition.createDateEnd"
                            datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDataPicker(1)"
                            is-open="datePickerFlag[1]" close-text="关闭"
                            ng-change="checkDate(condition, 'createDateStart', 'createDateEnd')" modal-size="small"
                            readonly>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">备注：</label>
                        <input type="text" name="purchaseBillId" ng-model="condition.note" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">发货通知单号：</label>
                        <input type="text" name="purchaseBillId" ng-model="condition.deliveryNo" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"><span>审核状态</span>：</label>
                        <select class="form-control" ng-model="condition.auditStatus">
                            <option value="">请选择</option>
                            <option value=0>待审核</option>
                            <option value=1>审核通过</option>
                            <option value=-1>审核拒绝</option>
                        </select>
                    </div>
                </div>
            </div>
            <div yb-col-config show-toolbar="toolbarConfig.showColConfig" ng-model="tbConf" col-fixed="true"
                has-check-col="true" set-tb-style="setFixedWidth()"></div>
            <div class="main-area">
                <div yb-table-fixed class="table-fixed-wrap fix-left" ele-count="4" scroll-area="right">
                    <div class="th-fixed">
                        <table class="table-fixed border-none" width="{{tbConf.fixedWidth}}">
                            <thead>
                                <tr>
                                    <th width="40" class="th-check text-center border-l-none">
                                        <div yb-check-box yb-checked="markInfo.allCheckedBill"
                                            yb-click="selectAll(dataList, 'Bill')"></div>
                                    </th>
                                    <th ng-repeat="itemCol in tbConf.tableCol track by $index" width="{{itemCol.width}}"
                                        ng-show="!!itemCol.isShow && !!itemCol.isFixed">
                                        <div yb-thead-operate ng-model="itemCol" target-width="tbConf.fixedWidth"
                                            fixed-width="tbStyle.fixedWidth"></div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="th-scroll-x" ng-style="tbStyle.fixedWidth">
                        <table class="table-fixed border-none" width="{{tbConf.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th ng-repeat="itemCol in tbConf.tableCol track by $index" width="{{itemCol.width}}"
                                        ng-show="!!itemCol.isShow && !itemCol.isFixed">
                                        <div yb-thead-operate ng-model="itemCol" target-width="tbConf.scrollWidth">
                                        </div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll-y">
                        <table class="table-fixed border-none" width="{{tbConf.fixedWidth}}">
                            <tbody>
                                <tr ng-repeat="item in dataList track by $index" ng-click="selectRow($index)"
                                    ng-class="{'row-selected': $index === markInfo.curRow}">
                                    <td width="40" class="text-center border-l-none">
                                        <div yb-check-box yb-checked="item.isChecked"
                                            yb-click="selectSingle(item, dataList, 'Bill')"></div>
                                    </td>
                                    <td class="spill-dots" ng-repeat="itemCol in tbConf.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-show="!!itemCol.isShow && !!itemCol.isFixed"
                                        title="{{item[itemCol.dataField]}}">
                                        <span
                                            ng-if="(!itemCol.clickFn && itemCol.type !== 'operate') || !!itemCol.clickFn && itemCol.type == 'synSap' && item[itemCol.dataField] != '同步失败'">{{item[itemCol.dataField]}}</span>
                                        <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)"
                                            ng-if="(!!itemCol.clickFn && itemCol.type != 'synSap') || (!!itemCol.clickFn && itemCol.type == 'synSap' && item[itemCol.dataField] == '同步失败')">
                                            {{item[itemCol.dataField]}}
                                        </a>
                                        <div class="font-0" ng-if="itemCol.type === 'operate'">
                                            <button class="btn btn-operate m-r-xs" ng-click="printBill(item)"
                                                ng-disabled="!btnPermission.pickingBillPrint || (isJCH&&item.auditStatus!=1)"
                                                title="{{!btnPermission.pickingBillPrint?'无权限执行此操作':''}}">打印</button>
                                            <button class="btn btn-operate m-r-xs"
                                                ng-click="printBillGroupByOutLoc(item)" ng-if="isJCH"
                                                ng-disabled="!btnPermission.pickingBillPrint || (isJCH&&item.auditStatus!=1)"
                                                title="{{!btnPermission.pickingBillPrint?'无权限执行此操作':''}}">多张打印</button>
                                            <button class="btn btn-operate m-r-xs" ng-click="editData(item)"
                                                ng-disabled="item.sapStatus === 1 || item.status === 2 || item.status === 3 || item.isReceipt === 1 || item.voucherInNo || !btnPermission.pickingBillEdit"
                                                title="{{!btnPermission.pickingBillEdit?'无权限执行此操作':''}}">编辑</button>
                                            <button class="btn btn-operate m-r-xs" ng-click="delData('single', item)"
                                                ng-disabled="!!item.status || item.isReceipt === 1 || item.voucherInNo || !btnPermission.pickingBillDel"
                                                title="{{!btnPermission.pickingBillDel?'无权限执行此操作':''}}">删除</button>
                                            <button type="button" class="btn btn-operate m-r-xs"
                                                ng-click="receipt(item.id)" ng-show="isWJ"
                                                ng-disabled="item.isReceipt === 1 || item.postStatus !== 2 || !btnPermission.pickingBillReceipt"
                                                title="{{!btnPermission.pickingBillReceipt?'无权限执行此操作':''}}">回执</button>
                                            <button class="btn btn-operate m-r-xs" ng-click="obligate(item)"
                                                ng-disabled="!!item.obligateDisabled || item.sapStatus === 1 || !btnPermission.pickingBillObligateAdd"
                                                title="{{!btnPermission.pickingBillObligateAdd?'无权限执行此操作':''}}">创建预留单</button>
                                            <button class="btn btn-operate m-r-xs" ng-click="posting(item, item.type)"
                                                ng-disabled="!!item.postingInDisabled  || item.status === 0 || item.postStatus ===2 || !btnPermission.pickingBillObligatePosting"
                                                title="{{!btnPermission.pickingBillObligatePosting?'无权限执行此操作':''}}">过账</button>
                                            <button type="button" class="btn btn-operate m-r-xs"
                                                ng-click="mandatoryFinish(item.type,item.requisitionNo)"
                                                ng-disabled="item.status == 2 || item.status == 3 || item.isReceipt === 1 || item.voucherInNo || !btnPermission.mandatoryFinish"
                                                title="{{!btnPermission.mandatoryFinish?'无权限执行此操作':''}}">结单</button>
                                            <button type="button" class="btn btn-operate m-r-xs"
                                                ng-click="go2adjust(item)" ng-if="item.type==0"
                                                ng-disabled="item.status==2||item.status==3">调整</button>
                                            <button class="btn btn-operate m-r-xs" ng-click="auditBill(item)"
                                                ng-disabled="item.auditStatus != 0 || !btnPermission.pickingBillAudit || item.auditStatus == 1"
                                                title="{{!btnPermission.pickingBillAudit?'无权限执行此操作':''}}">审核</button>
                                            <button class="btn btn-operate m-r-xs" ng-click="go2inbound(item)"
                                                ng-disabled="!btnPermission.pickingBillInBound || item.type==1 || item.status==2 || item.status==3"
                                                title="{{!btnPermission.pickingBillInBound?'无权限执行此操作':''}}">入库</button>
                                         <button class="btn btn-operate m-r-xs" ng-click="go2outbound(item)"
                                                ng-disabled="!btnPermission.pickingBillOutBound || !!item.warehouseBarCodeFlag || item.type == 0 || item.status == 2"
                                                title="{{!btnPermission.pickingBillOutBound?'无权限执行此操作':''}}">出库</button>       
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="dataList.length > 0" ng-style="tbStyle.fixedWidth">
                        <table class="table-fixed border-none" width="{{tbConf.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in dataList track by $index" ng-click="selectRow($index)"
                                    ng-class="{'row-selected': $index === markInfo.curRow}">
                                    <td class="spill-dots" ng-repeat="itemCol in tbConf.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-show="!!itemCol.isShow && !itemCol.isFixed"
                                        title="{{item[itemCol.dataField]}}">
                                        <span
                                            ng-if="(!itemCol.clickFn && itemCol.type !== 'operate') || !!itemCol.clickFn && itemCol.type == 'synSap' && item[itemCol.dataField] != '同步失败'">{{item[itemCol.dataField]}}</span>
                                        <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)"
                                            ng-if="(!!itemCol.clickFn && itemCol.type != 'synSap') || (!!itemCol.clickFn && itemCol.type == 'synSap' && item[itemCol.dataField] == '同步失败')">
                                            {{item[itemCol.dataField]}}
                                        </a>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="dataList.length === 0">暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area page-bar wrapper-y-sm clearfix">
                <div yb-check-box class="m-t-xs m-r-sm" yb-checked="markInfo.allCheckedBill" yb-check-name="全选"
                    yb-click="selectAll(dataList, 'Bill')"></div>
                <button class="btn btn-operate m-r-sm" ng-click="delData('batch')"
                    ng-disabled="!btnPermission.pickingBillDel"
                    title="{{!btnPermission.pickingBillDel?'无权限执行此操作':''}}">删除</button>
                <div yb-page-info ng-model="pageInfo" yb-refresh="search()"></div>
            </div>
        </div>
        <div tab heading="备件从生产领料" active="activeFlag[1]" ng-if="activeFlag[1]">
            <form name="form" class="m-t-sm form-horizontal form-up-tb border-b clearfix" novalidate>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">单据类型：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{billDetail.headerInfo.billTypeEcs}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">制单时间：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{billDetail.headerInfo.createDate | YbDate:'yyyy-MM-dd HH:mm:ss'}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">制单部门：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{billDetail.headerInfo.createPartName}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">申请人：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{billDetail.headerInfo.createName}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i>领入仓库：</label>
                    <div class="col-xs-8 wrapper-none">
                        <div yb-form-clear ng-model="billDetail.headerInfo.inLocation"
                            select-obj="selectWarehouse('in')" clear-form="clearWarehouse('in')" tips-name="领入仓库"
                            form-require="true"></div>

                        <div class="msg-block" ng-if="!billDetail.headerInfo.inLocation && submitted">
                            <div class="error-msg">
                                <div class="msg-triangle"></div>
                                请选择领入仓库
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i>领入库区：</label>
                    <div class="col-xs-8 wrapper-none">
                        <div yb-form-clear ng-model="billDetail.headerInfo.inArea" select-obj="selectArea('in')"
                            clear-form="clearArea('in')" tips-name="领入库区" form-require="true"></div>

                        <div class="msg-block" ng-if="!billDetail.headerInfo.inArea && submitted">
                            <div class="error-msg">
                                <div class="msg-triangle"></div>
                                请选择领入库区
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i>移动类型：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="moveType" maxlength="10" class="form-control light-bg"
                            ng-model="billDetail.headerInfo.sapType" required yb-focus>

                        <div class="msg-block" ng-if="form.moveType.$dirty || (form.moveType.$invalid && submitted)">
                            <div class="error-msg" ng-if="form.moveType.$error.required && !form.moveType.focused">
                                <div class="msg-triangle"></div>
                                必填项，请填写
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">备注：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="note" maxlength="200" class="form-control light-bg"
                            ng-model="billDetail.headerInfo.note">
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="!isSCH">
                    <label class="col-xs-4 control-label max-w-100"><i ng-if="isSCH">*</i><span translate>需求时间</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="requireTime" class="form-control date-picker cursor-pointer"
                            ng-model="billDetail.headerInfo.requireTime"
                            datepicker-popup="{{'yyyy-MM-dd HH:mm'}}" ng-click="showDatepicker = !showDatepicker"
                            is-open="showDatepicker" close-text="关闭" readonly ng-required="isSCH">
                        <div class="msg-block"
                            ng-show="form.requireTime.$dirty || (form.requireTime.$invalid && submitted)">
                            <div class="error-msg"
                                ng-if="form.requireTime.$error.required && !form.requireTime.focused">
                                <div class="msg-triangle"></div>
                                <span translate>必填项，请填写</span>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="isXF">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i><span translate>领出工厂</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="outFactorySapCode" maxlength="200" class="form-control light-bg"
                               ng-model="billDetail.headerInfo.outFactorySapCode">
                    </div>
                </div>
            </form>
            <div class="row wrapper-y-xs">
                <div class="col-xs-12 operate-bar font-0">
                    <button class="btn btn-operate m-r-sm" ng-click="selMateriel($event)">选择零件</button>
                    <button class="btn btn-operate m-r-sm" ng-click="importInMateriel()">导入零件</button>
                    <button class="btn btn-operate m-r-sm" ng-click="batchDelMateriel()">批量删除</button>
                    <button class="btn btn-operate m-r-sm" ng-click="selDeliveryNotes()">选择发货通知单</button>
                </div>
            </div>
            <div materiel-selector show-toolbar="toolbarConfig.showMateriel" selected-list="billDetail.detailList"
               ></div>
            <div class="main-area d-b-60" ng-style="{'top':isSCH?'180px':'220px'}">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{inTbConf.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th width="40" class="th-check text-center">
                                        <div yb-check-box yb-checked="markInfo.allCheckedMaterial"
                                            yb-click="selectAll(billDetail.detailList, 'Material')"></div>
                                    </th>
                                    <th width="80">
                                        操作
                                    </th>
                                    <th ng-repeat="itemCol in inTbConf.tableCol track by $index"
                                        width="{{itemCol.width}}" >
                                        <div yb-thead-operate ng-model="itemCol" target-width="inTbConf.scrollWidth">
                                        </div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="billDetail.detailList.length > 0">
                        <table class="table-fixed border-none" width="{{inTbConf.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in billDetail.detailList track by $index">
                                    <td width="40" class="text-center">
                                        <div yb-check-box yb-checked="item.isChecked"
                                            yb-click="selectSingle(item, billDetail.detailList, 'Material')"></div>
                                    </td>
                                    <td width="80">
                                        <button type="button" class="btn btn-operate"
                                            ng-click="delMateriel(item, $index, $event)">删除</button>
                                    </td>
                                    <td ng-repeat="itemCol in inTbConf.tableCol track by $index"
                                        width="{{itemCol.width}}" title="{{item[itemCol.dataField]}}">

                                        <div class="spill-dots" ng-if="!itemCol.input">
                                            <a class="btn-operate m-r-xs"
                                                ng-click="tdClick(sapStockMap[item.materialsNo], itemCol.clickFn)"
                                                ng-if="!!itemCol.clickFn">
                                                {{sapStockMap[item.materialsNo].totalStock}}
                                            </a>
                                            <span ng-if="!itemCol.clickFn">
                                                {{item[itemCol.dataField]}}
                                            </span>
                                        </div>

                                        <div class="td-edit pos-r"
                                            ng-if="!!itemCol.input && itemCol.inputType === 'txt'">
                                            <input type="text" class="form-control edit"
                                                ng-model="item[itemCol.dataField]"
                                                ng-class="{'error': !!item.outErr && !item[itemCol.dataField]}"
                                                maxlength="10" ng-blur="change2UpperCase(item)">
                                            <div class="pos-a tool-tips"
                                                ng-if="!!item.outErr && !item[itemCol.dataField]">
                                                <i class="triangle"></i>
                                                <div class="msg">领出仓库不能为空</div>
                                            </div>
                                        </div>

                                        <div class="td-edit pos-r"
                                            ng-if="!!itemCol.input && itemCol.inputType === 'num'">
                                            <input type="text" class="form-control edit"
                                                ng-model="item[itemCol.dataField]" ng-change="checkAmount(item, 'in')"
                                                yb-number-input max="99999.999" maxlength="9" disable-decimal="false"
                                                decimal-places="3" ng-class="{'error': !!item.qtyErr}">
                                            <div class="pos-a tool-tips" ng-if="!!item.qtyErr">
                                                <i class="triangle"></i>
                                                <div class="msg">{{item.qtyErrMsg}}</div>
                                            </div>
                                        </div>

                                        <div class="td-edit pos-r"
                                            ng-if="!!itemCol.input && itemCol.inputType === 'time'">
                                            <input type="text" name="requireTime" class="form-control date-picker cursor-pointer"
                                                ng-model="item[itemCol.dataField]"
                                                datepicker-popup="{{'yyyy-MM-dd HH:mm'}}" ng-click="showDatepicker = !showDatepicker"
                                                is-open="showDatepicker" close-text="关闭" readonly>
                                            <div class="pos-a tool-tips" ng-if="!!isSCH && !item[itemCol.dataField]">
                                                <i class="triangle"></i>
                                                <div class="msg">时间为必填项</div>
                                            </div>        
                                        </div>

                                        <div class="td-edit pos-r"
                                            ng-if="!!itemCol.input && itemCol.inputType === 'input'">
                                            <input type="text" class="form-control edit"
                                                ng-model="item[itemCol.dataField]"
                                                >
                                        </div>

                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="billDetail.detailList.length === 0">暂时没有数据
                    </div>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-primary m-r-sm" ng-click="saveData(form.$valid, 'in')">提交</button>
                <button type="button" class="btn btn-default m-r-sm" ng-click="cancel()">取消</button>
            </div>
        </div>
        <div tab heading="编辑领料单" active="activeFlag[2]" ng-if="activeFlag[2]">
            <form name="form" class="m-t-sm form-horizontal form-up-tb clearfix" novalidate>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">领料单号：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                        title="{{billDetail.headerInfo.requisitionNo || '-'}}">
                        {{billDetail.headerInfo.requisitionNo || "-"}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">单据类型：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                        title="{{billDetail.headerInfo.documentName || '-'}}">
                        {{billDetail.headerInfo.documentName || "-"}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">入库状态：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                        title="{{billDetail.headerInfo.status | ProgressStatus:'inDepot'}}">
                        {{billDetail.headerInfo.status | ProgressStatus:"inDepot"}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">制单人：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                        title="{{billDetail.headerInfo.createName || '-'}}">
                        {{billDetail.headerInfo.createName || "-"}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">制单时间：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                        title="{{(billDetail.headerInfo.createDate | YbDate:'yyyy-MM-dd HH:mm:ss') || '-'}}">
                        {{(billDetail.headerInfo.createDate | YbDate:'yyyy-MM-dd HH:mm:ss') || '-'}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">制单部门：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                        title="{{billDetail.headerInfo.createPartName || '-'}}">
                        {{billDetail.headerInfo.createPartName || "-"}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i>移动类型：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="moveType" class="form-control light-bg"
                            ng-model="billDetail.headerInfo.sapType" required yb-focus maxlength="10">

                        <div class="msg-block" ng-if="form.moveType.$dirty || (form.moveType.$invalid && submitted)">
                            <div class="error-msg" ng-if="form.moveType.$error.required && !form.moveType.focused">
                                <div class="msg-triangle"></div>
                                必填项，请填写
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">备注：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="note" maxlength="200" class="form-control light-bg"
                            ng-model="billDetail.headerInfo.note">
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="!isSCH">
                    <label class="col-xs-4 control-label max-w-100"><i ng-if="isSCH">*</i><span translate>需求时间</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="requireTime" class="form-control date-picker cursor-pointer"
                            ng-model="billDetail.headerInfo.requireTime"
                            datepicker-popup="{{'yyyy-MM-dd HH:mm'}}" ng-click="showDatepicker = !showDatepicker"
                            is-open="showDatepicker" close-text="关闭" readonly ng-required="isSCH">
                        <div class="msg-block"
                            ng-show="form.requireTime.$dirty || (form.requireTime.$invalid && submitted)">
                            <div class="error-msg"
                                ng-if="form.requireTime.$error.required && !form.requireTime.focused">
                                <div class="msg-triangle"></div>
                                <span translate>必填项，请填写</span>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="isXF&&billDetail.headerInfo.type == 0">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i><span translate>领出工厂</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="outFactorySapCode" maxlength="200" class="form-control light-bg"
                               ng-model="billDetail.headerInfo.outFactorySapCode">
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="isXF&&billDetail.headerInfo.type == 1">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i><span translate>领入工厂</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="inFactorySapCode" maxlength="200" class="form-control light-bg"
                               ng-model="billDetail.headerInfo.inFactorySapCode">
                    </div>
                </div>
            </form>
            <div class="panel-bar clearfix">
                <div class="pull-left">
                    <i></i>零件信息
                </div>
            </div>
            <div class="main-area d-b-60" ng-style="{'top':isSCH?'180px':'220px'}">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{editInTbConf.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th width="60">
                                        操作
                                    </th>
                                    <th ng-repeat="itemCol in editInTbConf.tableCol track by $index"
                                        width="{{itemCol.width}}">
                                        <div yb-thead-operate ng-model="itemCol"
                                            target-width="editInTbConf.scrollWidth"></div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="billDetail.detailList.length > 0">
                        <table class="table-fixed border-none" width="{{editInTbConf.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in billDetail.detailList track by $index">
                                    <td width="60">
                                        <button type="button" class="btn btn-operate"
                                            ng-click="delMateriel(item, $index, $event)"
                                            ng-disabled="item.status !== 0">删除</button>
                                    </td>
                                    <td ng-repeat="itemCol in editInTbConf.tableCol track by $index"
                                        width="{{itemCol.width}}" title="{{item[itemCol.dataField]}}">

                                        <div class="spill-dots"
                                            ng-if="!itemCol.input || item.status == 2 || item.status == 3">
                                            {{item[itemCol.dataField]}}
                                        </div>

                                        <div class="td-edit pos-r"
                                            ng-if="!!itemCol.input && itemCol.inputType === 'num' && (item.status == 0 || item.status == 1)">
                                            <input type="text" class="form-control edit"
                                                ng-model="item[itemCol.dataField]" ng-change="checkAmount(item, 'in')"
                                                yb-number-input max="99999.999" maxlength="9" disable-decimal="false"
                                                decimal-places="3" ng-class="{'error': !!item.qtyErr}">
                                            <div class="pos-a tool-tips" ng-if="!!item.qtyErr">
                                                <i class="triangle"></i>
                                                <div class="msg">{{item.qtyErrMsg}}</div>
                                            </div>
                                        </div>


                                        <div class="td-edit pos-r"
                                            ng-if="!!itemCol.input && itemCol.inputType === 'time'">
                                            <input type="text" name="requireTime" class="form-control date-picker cursor-pointer"
                                                ng-model="item[itemCol.dataField]"
                                                datepicker-popup="{{'yyyy-MM-dd HH:mm'}}" ng-click="showDatepicker = !showDatepicker"
                                                is-open="showDatepicker" close-text="关闭" readonly>
                                            <div class="pos-a tool-tips" ng-if="!!isSCH && !item[itemCol.dataField]">
                                                <i class="triangle"></i>
                                                <div class="msg">时间为必填项</div>
                                            </div>        
                                        </div>

                                        <div class="td-edit pos-r"
                                            ng-if="!!itemCol.input && itemCol.inputType === 'input'">
                                            <input type="text" class="form-control edit"
                                                ng-model="item[itemCol.dataField]"
                                                >
                                        </div>

                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="billDetail.detailList.length === 0">暂时没有数据
                    </div>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-primary m-r-sm" ng-click="saveData(form.$valid, 'in')">提交</button>
                <button type="button" class="btn btn-default m-r-sm" ng-click="cancel()">取消</button>
            </div>
        </div>
        <div tab heading="领料单明细" active="activeFlag[3]" ng-if="activeFlag[3]">
            <div class="m-t-sm form-up-tb clearfix">
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">领料单号：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{billDetail.headerInfo.requisitionNo || '-'}}">
                        {{billDetail.headerInfo.requisitionNo || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">单据类型：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{billDetail.headerInfo.documentName || '-'}}">
                        {{billDetail.headerInfo.documentName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">入库状态：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{billDetail.headerInfo.status | ProgressStatus:'inDepot'}}">
                        {{billDetail.headerInfo.status | ProgressStatus:"inDepot"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-5 m-b-n text-right max-w-100 spill-dots">领入过账状态：</label>
                    <div class="col-xs-7 wrapper-none spill-dots" title="{{billDetail.headerInfo.postInStatus  | ProgressStatus:'posting'}}">
                        {{billDetail.headerInfo.postInStatus | ProgressStatus:"posting"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-5 m-b-n text-right max-w-100 spill-dots">领出过账状态：</label>
                    <div class="col-xs-7 wrapper-none spill-dots" title="{{billDetail.headerInfo.postOutStatus  | ProgressStatus:'posting'}}">
                        {{billDetail.headerInfo.postOutStatus | ProgressStatus:"posting"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">制单人：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{billDetail.headerInfo.createName || '-'}}">
                        {{billDetail.headerInfo.createName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">制单时间：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{(billDetail.headerInfo.createDate | YbDate:'yyyy-MM-dd HH:mm:ss') || '-'}}">
                        {{(billDetail.headerInfo.createDate | YbDate:'yyyy-MM-dd HH:mm:ss') || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">制单部门：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{billDetail.headerInfo.createPartName || '-'}}">
                        {{billDetail.headerInfo.createPartName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">移动类型：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{billDetail.headerInfo.sapType || '-'}}">
                        {{billDetail.headerInfo.sapType || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">备注：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{billDetail.headerInfo.note || '-'}}">
                        {{billDetail.headerInfo.note || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">回执状态：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{billDetail.headerInfo.isReceipt | ProgressStatus:'receiptState'}}">
                        {{billDetail.headerInfo.isReceipt | ProgressStatus:"receiptState"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">回执人：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{billDetail.headerInfo.receiptUser || '-'}}">
                        {{billDetail.headerInfo.receiptUser || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">回执时间：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{billDetail.headerInfo.receiptDate | YbDate:'yyyy-MM-dd HH:mm:ss'}}">
                        {{billDetail.headerInfo.receiptDate||'-' | YbDate:'yyyy-MM-dd HH:mm:ss'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">CRM单号：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{billDetail.headerInfo.crmOrder || '-'}}">
                        {{billDetail.headerInfo.crmOrder || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">需求时间：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{billDetail.headerInfo.requireTimeShow || '-'}}">
                        {{billDetail.headerInfo.requireTimeShow || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="isXF&&billDetail.headerInfo.type == 0">
                    <label class="col-xs-4 m-b-n text-right max-w-100">领出工厂：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{billDetail.headerInfo.outFactorySapCode || '-'}}">
                        {{billDetail.headerInfo.outFactorySapCode || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="isXF&&billDetail.headerInfo.type == 1">
                    <label class="col-xs-4 m-b-n text-right max-w-100">领入工厂：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{billDetail.headerInfo.inFactorySapCode || '-'}}">
                        {{billDetail.headerInfo.inFactorySapCode || "-"}}
                    </div>
                </div>
            </div>
            <div class="panel-bar clearfix">
                <div class="pull-left">
                    <i></i>零件信息
                </div>
            </div>
            <div class="row wrapper-y-xs">
                <div class="col-xs-12 operate-bar font-0">
                    <button class="btn btn-operate m-r-sm" ng-click="batchPrint4Details()">批量打印</button>
                </div>
            </div>
            <div class="main-area d-b-60" style="top:230px;">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{viewInTbConf.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th width="40" class="th-check text-center">
                                        <div yb-check-box yb-checked="markInfo.allCheckedMaterial"
                                            yb-click="selectAll(billDetail.detailList, 'Material')"></div>
                                    </th>
                                    <th width="140" class="border-l-none">
                                        操作
                                    </th>
                                    <th ng-repeat="itemCol in viewInTbConf.tableCol track by $index"
                                        width="{{itemCol.width}}">
                                        <div yb-thead-operate ng-model="itemCol"
                                            target-width="viewInTbConf.scrollWidth"></div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="billDetail.detailList.length > 0">
                        <table class="table-fixed border-none" width="{{viewInTbConf.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in billDetail.detailList track by $index">
                                    <td width="40" class="text-center">
                                        <div yb-check-box yb-checked="item.isChecked"
                                            yb-click="selectSingle(item, billDetail.detailList, 'Material')"></div>
                                    </td>
                                    <td width="140" class="font-0">
                                        <button class="btn btn-operate m-r-xs"
                                            ng-click="printBill4Details(item)"
                                            ng-disabled="!btnPermission.pickingBillPrint"
                                            title="{{!btnPermission.pickingBillPrint?'无权限执行此操作':''}}">打印</button>
                                        <button class="btn btn-operate m-r-xs"
                                            ng-click="mandatoryFinish(billDetail.headerInfo.type,billDetail.headerInfo.requisitionNo, billDetail.headerInfo.id, item.materialsNo)"
                                            ng-disabled="billDetail.headerInfo.status == 2 || billDetail.headerInfo.status == 3 || item.status == 2 || item.status == 3 || !btnPermission.mandatoryFinish"
                                            title="{{!btnPermission.mandatoryFinish?'无权限执行此操作':''}}">结单</button>
                                        <button class="btn btn-operate m-r-xs"
                                            ng-disabled="item.revokeDisabled || item.postInStatus==2"
                                            ng-click="handleRevoke(item)">撤回</button>
                                        <button class="btn btn-operate"
                                            ng-click="posting(billDetail.headerInfo, billDetail.headerInfo.type, item.materialsNo)"
                                            ng-disabled="item.realAmount <= item.postAmount || item.status === 3 || !btnPermission.pickingBillObligatePosting"
                                            title="{{!btnPermission.pickingBillObligatePosting?'无权限执行此操作':''}}">过账</button>
                                    </td>
                                    <td ng-repeat="itemCol in viewInTbConf.tableCol track by $index"
                                        width="{{itemCol.width}}" class="spill-dots"
                                        title="{{item[itemCol.dataField]}}">
                                        {{item[itemCol.dataField]}}
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="billDetail.detailList.length === 0">暂时没有数据
                    </div>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-primary m-r-sm"
                    ng-click="mandatoryFinish(billDetail.headerInfo.type,billDetail.headerInfo.requisitionNo, billDetail.headerInfo.id)"
                    ng-disabled="billDetail.headerInfo.status == 2 || billDetail.headerInfo.status == 3 || !btnPermission.mandatoryFinish"
                    title="{{!btnPermission.mandatoryFinish?'无权限执行此操作':''}}">结单</button>

                <button type="button" class="btn btn-default m-r-sm" ng-click="cancel()">返回</button>
            </div>
        </div>
        <div tab heading="生产从备件领料" active="activeFlag[4]" ng-if="activeFlag[4]">
            <form name="form" class="m-t-sm form-horizontal form-up-tb border-b clearfix" novalidate>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">单据类型：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{billDetail.headerInfo.billTypeEcs}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">制单时间：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{billDetail.headerInfo.createDate|YbDate:'yyyy-MM-dd HH:mm:ss'}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">制单部门：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{billDetail.headerInfo.createPartName}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">申请人：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">
                        {{billDetail.headerInfo.createName}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i>领出仓库：</label>
                    <div class="col-xs-8 wrapper-none">
                        <div yb-form-clear ng-model="billDetail.headerInfo.outLocation"
                            select-obj="selectWarehouse('out')" clear-form="clearWarehouse('out')" tips-name="领出仓库"
                            form-require="true"></div>

                        <div class="msg-block" ng-if="!billDetail.headerInfo.outLocation && submitted">
                            <div class="error-msg">
                                <div class="msg-triangle"></div>
                                请选择领出仓库
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i>领出库区：</label>
                    <div class="col-xs-8 wrapper-none">
                        <div yb-form-clear ng-model="billDetail.headerInfo.outArea" select-obj="selectArea('out')"
                            clear-form="clearArea('out')" tips-name="领出库区" form-require="true"></div>

                        <div class="msg-block" ng-if="!billDetail.headerInfo.outArea && submitted">
                            <div class="error-msg">
                                <div class="msg-triangle"></div>
                                请选择领出库区
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i>领入仓库：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="inLocation" class="form-control light-bg"
                            ng-model="billDetail.headerInfo.inLocation" required yb-focus maxlength="10">

                        <div class="msg-block"
                            ng-if="form.inLocation.$dirty || (form.inLocation.$invalid && submitted)">
                            <div class="error-msg" ng-if="form.inLocation.$error.required && !form.inLocation.focused">
                                <div class="msg-triangle"></div>
                                必填项，请填写
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i>移动类型：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="moveType" class="form-control light-bg"
                            ng-model="billDetail.headerInfo.sapType" required yb-focus maxlength="10">

                        <div class="msg-block" ng-if="form.moveType.$dirty || (form.moveType.$invalid && submitted)">
                            <div class="error-msg" ng-if="form.moveType.$error.required && !form.moveType.focused">
                                <div class="msg-triangle"></div>
                                必填项，请填写
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">备注：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="note" maxlength="200" class="form-control light-bg"
                            ng-model="billDetail.headerInfo.note">
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm"   ng-if="!isSCH">
                    <label class="col-xs-4 control-label max-w-100"><i ng-if="isSCH">*</i><span translate>需求时间</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="requireTime" class="form-control date-picker cursor-pointer"
                            ng-model="billDetail.headerInfo.requireTime"
                            datepicker-popup="{{'yyyy-MM-dd HH:mm'}}" ng-click="showDatepicker = !showDatepicker"
                            is-open="showDatepicker" close-text="关闭" readonly ng-required="isSCH">
                        <div class="msg-block"
                            ng-show="form.requireTime.$dirty || (form.requireTime.$invalid && submitted)">
                            <div class="error-msg"
                                ng-if="form.requireTime.$error.required && !form.requireTime.focused">
                                <div class="msg-triangle"></div>
                                <span translate>必填项，请填写</span>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i><span translate>领入工厂</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="inFactorySapCode" maxlength="200" class="form-control light-bg"
                               ng-model="billDetail.headerInfo.inFactorySapCode">
                    </div>
                </div>
            </form>
            <div class="row wrapper-y-xs">
                <div class="col-xs-12 operate-bar font-0">
                    <button class="btn btn-operate m-r-sm" ng-click="selMateriel($event)">选择零件</button>
                    <button class="btn btn-operate m-r-sm" ng-click="importOutMateriel()">导入零件</button>
                    <button class="btn btn-operate m-r-sm" ng-click="batchDelMateriel()">批量删除</button>
                </div>
            </div>
            <div materiel-selector show-toolbar="toolbarConfig.showMateriel" is-default-warehouse="true"
                selected-list="billDetail.detailList"
                warehouse-code="billDetail.headerInfo.outLocation" area-code="billDetail.headerInfo.outArea"
                mark-stock-status="true"></div>
            <div class="main-area d-b-60"  style="top:220px;">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{outTbConf.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th width="40" class="th-check text-center">
                                        <div yb-check-box yb-checked="markInfo.allCheckedMaterial"
                                            yb-click="selectAll(billDetail.detailList, 'Material')"></div>
                                    </th>
                                    <th width="80">
                                        操作
                                    </th>
                                    <th ng-repeat="itemCol in outTbConf.tableCol track by $index"
                                        width="{{itemCol.width}}">
                                        <div yb-thead-operate ng-model="itemCol" target-width="outTbConf.scrollWidth">
                                        </div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="billDetail.detailList.length > 0">
                        <table class="table-fixed border-none" width="{{outTbConf.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in billDetail.detailList track by $index">
                                    <td width="40" class="text-center">
                                        <div yb-check-box yb-checked="item.isChecked"
                                            yb-click="selectSingle(item, billDetail.detailList, 'Material')"></div>
                                    </td>
                                    <td width="80">
                                        <button type="button" class="btn btn-operate"
                                            ng-click="delMateriel(item, $index, $event)">删除</button>
                                    </td>
                                    <td ng-repeat="itemCol in outTbConf.tableCol track by $index"
                                        width="{{itemCol.width}}" title="{{item[itemCol.dataField]}}">

                                        <div class="spill-dots" ng-if="!itemCol.input">
                                            <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)"
                                                ng-if="!!itemCol.clickFn">
                                                {{item[itemCol.dataField]}}
                                            </a>
                                            <span ng-if="!itemCol.clickFn">
                                                {{item[itemCol.dataField]}}
                                            </span>
                                        </div>

                                        <div class="td-edit pos-r"
                                            ng-if="!!itemCol.input && itemCol.inputType === 'num'">
                                            <input type="text" class="form-control edit"
                                                ng-model="item[itemCol.dataField]" ng-focus="showQtyTip(item)"
                                                ng-blur="hideQtyTip(item)" ng-change="checkAmount(item, 'out')"
                                                yb-number-input max="99999.999" maxlength="9" disable-decimal="false"
                                                decimal-places="3"
                                                ng-class="{'error': !!item.qtyErr, 'high-warning': item.qtyStockErr && (item.qtyStockErrLevel == 3),
                                                    'mid-warning': item.qtyStockErr  && (item.qtyStockErrLevel == 2), 'low-warning': item.qtyStockErr  && (item.qtyStockErrLevel == 1)}">
                                            <div class="pos-a tool-tips" ng-if="!!item.qtyErr || item.showStockErr">
                                                <i class="triangle"></i>
                                                <div class="msg">{{item.qtyErrMsg}}</div>
                                            </div>
                                        </div>


                                        <div class="td-edit pos-r"
                                            ng-if="!!itemCol.input && itemCol.inputType === 'time'">
                                            <input type="text" name="requireTime" class="form-control date-picker cursor-pointer"
                                                ng-model="item[itemCol.dataField]"
                                                datepicker-popup="{{'yyyy-MM-dd HH:mm'}}" ng-click="showDatepicker = !showDatepicker"
                                                is-open="showDatepicker" close-text="关闭" readonly>
                                            <div class="pos-a tool-tips" ng-if="!!isSCH && !item[itemCol.dataField]">
                                                <i class="triangle"></i>
                                                <div class="msg">时间为必填项</div>
                                            </div>        
                                        </div>

                                        <div class="td-edit pos-r"
                                            ng-if="!!itemCol.input && itemCol.inputType === 'input'">
                                            <input type="text" class="form-control edit"
                                                ng-model="item[itemCol.dataField]"
                                                >
                                        </div>

                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="billDetail.detailList.length === 0">暂时没有数据
                    </div>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-primary m-r-sm" ng-click="saveData(form.$valid, 'out')">提交</button>
                <button type="button" class="btn btn-default m-r-sm" ng-click="cancel()">取消</button>
            </div>
        </div>
        <div tab heading="编辑领料单" active="activeFlag[5]" ng-if="activeFlag[5]">
            <form name="form" class="m-t-sm form-horizontal form-up-tb clearfix" novalidate>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">领料单号：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                        title="{{billDetail.headerInfo.requisitionNo || '-'}}">
                        {{billDetail.headerInfo.requisitionNo || "-"}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">单据类型：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                        title="{{billDetail.headerInfo.documentName || '-'}}">
                        {{billDetail.headerInfo.documentName || "-"}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">出库状态：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                        title="{{billDetail.headerInfo.status | ProgressStatus:'outDepot'}}">
                        {{billDetail.headerInfo.status | ProgressStatus:'outDepot'}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">制单人：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                        title="{{billDetail.headerInfo.createName || '-'}}">
                        {{billDetail.headerInfo.createName || "-"}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">制单时间：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                        title="{{(billDetail.headerInfo.createDate | YbDate:'yyyy-MM-dd HH:mm:ss') || '-'}}">
                        {{(billDetail.headerInfo.createDate | YbDate:'yyyy-MM-dd HH:mm:ss') || '-'}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">制单部门：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                        title="{{billDetail.headerInfo.createPartName || '-'}}">
                        {{billDetail.headerInfo.createPartName || "-"}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i>移动类型：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="moveType" class="form-control light-bg"
                            ng-model="billDetail.headerInfo.sapType" required yb-focus maxlength="10">

                        <div class="msg-block" ng-if="form.moveType.$dirty || (form.moveType.$invalid && submitted)">
                            <div class="error-msg" ng-if="form.moveType.$error.required && !form.moveType.focused">
                                <div class="msg-triangle"></div>
                                必填项，请填写
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">备注：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="note" maxlength="200" class="form-control light-bg"
                            ng-model="billDetail.headerInfo.note">
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="!isSCH">
                    <label class="col-xs-4 control-label max-w-100"><i ng-if="isSCH">*</i><span translate>需求时间</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="requireTime" class="form-control date-picker cursor-pointer"
                            ng-model="billDetail.headerInfo.requireTime"
                            datepicker-popup="{{'yyyy-MM-dd HH:mm'}}" ng-click="showDatepicker = !showDatepicker"
                            is-open="showDatepicker" close-text="关闭" readonly ng-required="isSCH">
                        <div class="msg-block"
                            ng-show="form.requireTime.$dirty || (form.requireTime.$invalid && submitted)">
                            <div class="error-msg"
                                ng-if="form.requireTime.$error.required && !form.requireTime.focused">
                                <div class="msg-triangle"></div>
                                <span translate>必填项，请填写</span>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="isXF&&billDetail.headerInfo.type == 0">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i><span translate>领出工厂</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="outFactorySapCode" maxlength="200" class="form-control light-bg"
                               ng-model="billDetail.headerInfo.outFactorySapCode">
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="isXF&&billDetail.headerInfo.type == 1">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i><span translate>领入工厂</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="inFactorySapCode" maxlength="200" class="form-control light-bg"
                               ng-model="billDetail.headerInfo.inFactorySapCode">
                    </div>
                </div>
            </form>
            <div class="panel-bar clearfix">
                <div class="pull-left">
                    <i></i>零件信息
                </div>
            </div>
            <div class="main-area d-b-60"  style="top:220px;">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{editOutTbConf.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th width="60">
                                        操作
                                    </th>
                                    <th ng-repeat="itemCol in editOutTbConf.tableCol track by $index"
                                        width="{{itemCol.width}}">
                                        <div yb-thead-operate ng-model="itemCol"
                                            target-width="editOutTbConf.scrollWidth"></div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="billDetail.detailList.length > 0">
                        <table class="table-fixed border-none" width="{{editOutTbConf.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in billDetail.detailList track by $index">
                                    <td width="60">
                                        <button type="button" class="btn btn-operate"
                                            ng-click="delMateriel(item, $index, $event)"
                                            ng-disabled="item.status == 2 || item.status == 3">删除</button>
                                    </td>
                                    <td ng-repeat="itemCol in editOutTbConf.tableCol track by $index"
                                        width="{{itemCol.width}}" title="{{item[itemCol.dataField]}}">

                                        <div class="spill-dots"
                                            ng-if="!itemCol.input || item.status == 2 || item.status == 3">
                                            {{item[itemCol.dataField]}}
                                        </div>

                                        <div class="td-edit pos-r"
                                            ng-if="!!itemCol.input && itemCol.inputType === 'num' && (item.status == 0 || item.status == 1)">
                                            <input type="text" class="form-control edit"
                                                ng-model="item[itemCol.dataField]" ng-change="checkAmount(item, 'out')"
                                                yb-number-input max="99999.999" maxlength="9" disable-decimal="false"
                                                decimal-places="3" ng-class="{'error': !!item.qtyErr}">
                                            <div class="pos-a tool-tips" ng-if="!!item.qtyErr">
                                                <i class="triangle"></i>
                                                <div class="msg">{{item.qtyErrMsg}}</div>
                                            </div>
                                        </div>


                                        <div class="td-edit pos-r"
                                            ng-if="!!itemCol.input && itemCol.inputType === 'time'">
                                            <input type="text" name="requireTime" class="form-control date-picker cursor-pointer"
                                                ng-model="item[itemCol.dataField]"
                                                datepicker-popup="{{'yyyy-MM-dd HH:mm'}}" ng-click="showDatepicker = !showDatepicker"
                                                is-open="showDatepicker" close-text="关闭" readonly>
                                            <div class="pos-a tool-tips" ng-if="!!isSCH && !item[itemCol.dataField]">
                                                <i class="triangle"></i>
                                                <div class="msg">时间为必填项</div>
                                            </div>        
                                        </div>

                                        <div class="td-edit pos-r"
                                            ng-if="!!itemCol.input && itemCol.inputType === 'input'">
                                            <input type="text" class="form-control edit"
                                                ng-model="item[itemCol.dataField]"
                                                >
                                        </div>

                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="billDetail.detailList.length === 0">暂时没有数据
                    </div>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-primary m-r-sm" ng-click="saveData(form.$valid, 'out')">提交</button>
                <button type="button" class="btn btn-default m-r-sm" ng-click="cancel()">取消</button>
            </div>
        </div>
        <div tab heading="领料单明细" active="activeFlag[6]" ng-if="activeFlag[6]">
            <div class="m-t-sm form-up-tb clearfix">
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">领料单号：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{billDetail.headerInfo.requisitionNo || '-'}}">
                        {{billDetail.headerInfo.requisitionNo || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">单据类型：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{billDetail.headerInfo.documentName || '-'}}">
                        {{billDetail.headerInfo.documentName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">出库状态：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{billDetail.headerInfo.status | ProgressStatus:'outDepot'}}">
                        {{billDetail.headerInfo.status | ProgressStatus:"outDepot"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-5 m-b-n text-right max-w-100 spill-dots">领入过账状态：</label>
                    <div class="col-xs-7 wrapper-none spill-dots" title="{{billDetail.headerInfo.postInStatusShow}}">
                        {{billDetail.headerInfo.postInStatusShow || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-5 m-b-n text-right max-w-100 spill-dots">领出过账状态：</label>
                    <div class="col-xs-7 wrapper-none spill-dots" title="{{billDetail.headerInfo.postOutStatusShow}}">
                        {{billDetail.headerInfo.postOutStatusShow || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">制单人：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{billDetail.headerInfo.createName || '-'}}">
                        {{billDetail.headerInfo.createName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">制单时间：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{(billDetail.headerInfo.createDate | YbDate:'yyyy-MM-dd HH:mm:ss') || '-'}}">
                        {{(billDetail.headerInfo.createDate | YbDate:'yyyy-MM-dd HH:mm:ss') || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">制单部门：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{billDetail.headerInfo.createPartName || '-'}}">
                        {{billDetail.headerInfo.createPartName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">移动类型：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{billDetail.headerInfo.sapType || '-'}}">
                        {{billDetail.headerInfo.sapType || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">备注：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{billDetail.headerInfo.note || '-'}}">
                        {{billDetail.headerInfo.note || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">CRM单号：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{billDetail.headerInfo.crmOrder || '-'}}">
                        {{billDetail.headerInfo.crmOrder || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">需求时间：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{billDetail.headerInfo.requireTimeShow || '-'}}">
                        {{billDetail.headerInfo.requireTimeShow || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="isXF&&billDetail.headerInfo.type == 0">
                    <label class="col-xs-4 m-b-n text-right max-w-100">领出工厂：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{billDetail.headerInfo.outFactorySapCode || '-'}}">
                        {{billDetail.headerInfo.outFactorySapCode || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="isXF&&billDetail.headerInfo.type == 1">
                    <label class="col-xs-4 m-b-n text-right max-w-100">领入工厂：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{billDetail.headerInfo.inFactorySapCode || '-'}}">
                        {{billDetail.headerInfo.inFactorySapCode || "-"}}
                    </div>
                </div>
            </div>
            <div class="panel-bar clearfix">
                <div class="pull-left">
                    <i></i>零件信息
                </div>
            </div>
            <div class="row wrapper-y-xs">
                <div class="col-xs-12 operate-bar font-0">
                    <button class="btn btn-operate m-r-sm" ng-click="batchPrint4Details()">批量打印</button>
                </div>
            </div>
            <div class="main-area d-b-60" style="top:200px;">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x">
                        <thead>
                            <table class="table-fixed border-none" width="{{viewOutTbConf.scrollWidth}}">
                                <thead>
                                    <tr>
                                        <th width="40" class="th-check text-center">
                                            <div yb-check-box yb-checked="markInfo.allCheckedMaterial"
                                                yb-click="selectAll(billDetail.detailList, 'Material')"></div>
                                        </th>
                                        <th width="140" class="border-l-none">
                                            操作
                                        </th>
                                        <th ng-repeat="itemCol in viewOutTbConf.tableCol track by $index" width="{{itemCol.width}}">
                                            <div yb-thead-operate ng-model="itemCol" target-width="viewOutTbConf.scrollWidth"></div>
                                        </th>
                                    </tr>
                                </thead>
                            </table>
                    </div>
                    <div class="td-scroll" ng-show="billDetail.detailList.length > 0">
                        <table class="table-fixed border-none" width="{{viewOutTbConf.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in billDetail.detailList track by $index">
                                    <td width="40" class="text-center">
                                        <div yb-check-box yb-checked="item.isChecked"
                                            yb-click="selectSingle(item, billDetail.detailList, 'Material')"></div>
                                    </td>
                                    <td width="140" class="font-0">
                                        <button class="btn btn-operate m-r-xs"
                                            ng-click="printBill4Details(item)"
                                            ng-disabled="!btnPermission.pickingBillPrint"
                                            title="{{!btnPermission.pickingBillPrint?'无权限执行此操作':''}}">打印</button>
                                        <button class="btn btn-operate m-r-xs"
                                            ng-click="mandatoryFinish(billDetail.headerInfo.type,billDetail.headerInfo.requisitionNo, billDetail.headerInfo.id, item.materialsNo)"
                                            ng-disabled="billDetail.headerInfo.status == 2 || billDetail.headerInfo.status == 3 || item.status == 2 || item.status == 3 || !btnPermission.mandatoryFinish"
                                            title="{{!btnPermission.mandatoryFinish?'无权限执行此操作':''}}">结单</button>
                                        <button class="btn btn-operate m-r-xs"
                                            ng-disabled="item.revokeDisabled || item.postOutStatus==2"
                                            ng-click="handleRevoke(item)">撤回</button>
                                        <button class="btn btn-operate"
                                            ng-click="posting(billDetail.headerInfo, billDetail.headerInfo.type, item.materialsNo)"
                                            ng-disabled="!!item.voucherInNo || item.realAmount <= item.postAmount || item.status === 3 || !btnPermission.pickingBillObligatePosting"
                                            title="{{!btnPermission.pickingBillObligatePosting?'无权限执行此操作':''}}">过账</button>
                                    </td>
                                    <td ng-repeat="itemCol in viewOutTbConf.tableCol track by $index"
                                        width="{{itemCol.width}}" class="spill-dots"
                                        title="{{item[itemCol.dataField]}}">
                                        {{item[itemCol.dataField]}}
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="billDetail.detailList.length === 0">暂时没有数据
                    </div>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-primary m-r-sm"
                    ng-click="mandatoryFinish(billDetail.headerInfo.type,billDetail.headerInfo.requisitionNo, billDetail.headerInfo.id)"
                    ng-disabled="billDetail.headerInfo.status == 2 || billDetail.headerInfo.status == 3 || !btnPermission.mandatoryFinish"
                    title="{{!btnPermission.mandatoryFinish?'无权限执行此操作':''}}">结单</button>

                <button type="button" class="btn btn-default m-r-sm" ng-click="cancel()">返回</button>
            </div>
        </div>
        <div tab heading="调整" active="activeFlag[7]" ng-if="activeFlag[7]">
            <form name="orderForm" class="m-t-sm form-horizontal form-up-tb border-b clearfix" novalidate>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">领料单号：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{billDetail.headerInfo.requisitionNo || '-'}}">
                        {{billDetail.headerInfo.requisitionNo || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">单据类型：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{billDetail.headerInfo.documentName || '-'}}">
                        {{billDetail.headerInfo.documentName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">入库状态：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{billDetail.headerInfo.status | ProgressStatus:'inDepot'}}">
                        {{billDetail.headerInfo.status | ProgressStatus:"inDepot"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100 spill-dots">领入零件凭证：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{billDetail.headerInfo.voucherInNo || '-'}}">
                        {{billDetail.headerInfo.voucherInNo || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100 spill-dots">领入过账状态：</label>
                    <div class="col-xs-8 wrapper-none spill-dots">
                        {{billDetail.headerInfo.postInStatus | ProgressStatus:"posting"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">制单人：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{billDetail.headerInfo.createName || '-'}}">
                        {{billDetail.headerInfo.createName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">制单时间：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{(billDetail.headerInfo.createDate | YbDate:'yyyy-MM-dd HH:mm:ss') || '-'}}">
                        {{(billDetail.headerInfo.createDate | YbDate:'yyyy-MM-dd HH:mm:ss') || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">制单部门：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{billDetail.headerInfo.createPartName || '-'}}">
                        {{billDetail.headerInfo.createPartName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">移动类型：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{billDetail.headerInfo.sapType || '-'}}">
                        {{billDetail.headerInfo.sapType || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">备注：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{billDetail.headerInfo.note || '-'}}">
                        {{billDetail.headerInfo.note || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="!isSCH">
                    <label class="col-xs-4 control-label max-w-100"><i ng-if="isSCH">*</i><span translate>需求时间</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" name="requireTime" class="form-control date-picker cursor-pointer"
                            ng-model="billDetail.headerInfo.requireTime"
                            datepicker-popup="{{'yyyy-MM-dd HH:mm'}}" ng-click="showDatepicker = !showDatepicker"
                            is-open="showDatepicker" close-text="关闭" readonly ng-required="isSCH">
                        <div class="msg-block"
                            ng-show="orderForm.requireTime.$dirty || (orderForm.requireTime.$invalid && submitted)">
                            <div class="error-msg"
                                ng-if="orderForm.requireTime.$error.required && !orderForm.requireTime.focused">
                                <div class="msg-triangle"></div>
                                <span translate>必填项，请填写</span>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="isXF&&billDetail.headerInfo.type == 0">
                    <label class="col-xs-4 m-b-n text-right max-w-100">领出工厂：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{billDetail.headerInfo.outFactorySapCode || '-'}}">
                        {{billDetail.headerInfo.outFactorySapCode || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="isXF&&billDetail.headerInfo.type == 1">
                    <label class="col-xs-4 m-b-n text-right max-w-100">领入工厂：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{billDetail.headerInfo.inFactorySapCode || '-'}}">
                        {{billDetail.headerInfo.inFactorySapCode || "-"}}
                    </div>
                </div>
            </form>
            <div class="panel-bar clearfix">
                <div class="pull-left">
                    <i></i>零件信息
                </div>
            </div>
            <div class="main-area d-b-60" style="top:180px;">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{adjustInTbConf.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th ng-repeat="itemCol in adjustInTbConf.tableCol track by $index"
                                        width="{{itemCol.width}}">
                                        <div yb-thead-operate ng-model="itemCol"
                                            target-width="adjustInTbConf.scrollWidth"></div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="billDetail.detailList.length > 0">
                        <table class="table-fixed border-none" width="{{adjustInTbConf.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in billDetail.detailList track by $index">
                                    <td ng-repeat="itemCol in adjustInTbConf.tableCol track by $index"
                                        width="{{itemCol.width}}" title="{{item[itemCol.dataField]}}">

                                        <div class="spill-dots" ng-if="!itemCol.input">
                                            {{item[itemCol.dataField]}}
                                        </div>

                                        <div class="td-edit pos-r"
                                            ng-if="!!itemCol.input && itemCol.inputType === 'txt'">
                                            <input type="text" class="form-control edit"
                                                ng-model="item[itemCol.dataField]" ng-blur="change2UpperCase(item)">
                                        </div>

                                        <div class="td-edit pos-r"
                                            ng-if="!!itemCol.input && itemCol.inputType === 'num'">
                                            <input type="text" class="form-control edit"
                                                ng-model="item[itemCol.dataField]">
                                        </div>

                                        <div class="td-edit pos-r"
                                            ng-if="!!itemCol.input && itemCol.inputType === 'time'">
                                            <input type="text" name="requireTime" class="form-control date-picker cursor-pointer"
                                                ng-model="item[itemCol.dataField]"
                                                datepicker-popup="{{'yyyy-MM-dd HH:mm'}}" ng-click="showDatepicker = !showDatepicker"
                                                is-open="showDatepicker" close-text="关闭" readonly>
                                            <div class="pos-a tool-tips" ng-if="!!isSCH && !item[itemCol.dataField]">
                                                <i class="triangle"></i>
                                                <div class="msg">时间为必填项</div>
                                            </div>        
                                        </div>

                                        <div class="td-edit pos-r"
                                            ng-if="!!itemCol.input && itemCol.inputType === 'input'">
                                            <input type="text" class="form-control edit"
                                                ng-model="item[itemCol.dataField]"
                                                >
                                        </div>

                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="billDetail.detailList.length === 0">暂时没有数据
                    </div>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-primary m-r-sm" ng-click="adjustData(orderForm.$valid, billDetail)">调整</button>
                <button type="button" class="btn btn-default m-r-sm" ng-click="cancel()">返回</button>
            </div>
        </div>
        <div tab heading="审核" active="activeFlag[8]" ng-if="activeFlag[8]">
            <form name="form" class="m-t-sm form-horizontal form-up-tb clearfix" novalidate>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">领料单号：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                        title="{{billDetail.headerInfo.requisitionNo || '-'}}">
                        {{billDetail.headerInfo.requisitionNo || "-"}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">单据类型：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                        title="{{billDetail.headerInfo.documentName || '-'}}">
                        {{billDetail.headerInfo.documentName || "-"}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">入库状态：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                        title="{{billDetail.headerInfo.status | ProgressStatus:'inDepot'}}">
                        {{billDetail.headerInfo.status | ProgressStatus:"inDepot"}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">制单人：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                        title="{{billDetail.headerInfo.createName || '-'}}">
                        {{billDetail.headerInfo.createName || "-"}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">制单时间：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                        title="{{(billDetail.headerInfo.createDate | YbDate:'yyyy-MM-dd HH:mm:ss') || '-'}}">
                        {{(billDetail.headerInfo.createDate | YbDate:'yyyy-MM-dd HH:mm:ss') || '-'}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">制单部门：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                        title="{{billDetail.headerInfo.createPartName || '-'}}">
                        {{billDetail.headerInfo.createPartName || "-"}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">移动类型：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                        title="{{billDetail.headerInfo.sapType || '-'}}">
                        {{billDetail.headerInfo.sapType || "-"}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">备注：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                        title="{{billDetail.headerInfo.note || '-'}}">
                        {{billDetail.headerInfo.note || "-"}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">需求时间：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{billDetail.headerInfo.requireTimeShow || '-'}}">
                        {{billDetail.headerInfo.requireTimeShow || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="isXF&&billDetail.headerInfo.type == 0">
                    <label class="col-xs-4 m-b-n text-right max-w-100">领出工厂：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{billDetail.headerInfo.outFactorySapCode || '-'}}">
                        {{billDetail.headerInfo.outFactorySapCode || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="isXF&&billDetail.headerInfo.type == 1">
                    <label class="col-xs-4 m-b-n text-right max-w-100">领入工厂：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{billDetail.headerInfo.inFactorySapCode || '-'}}">
                        {{billDetail.headerInfo.inFactorySapCode || "-"}}
                    </div>
                </div>
            </form>
            <div class="main-area d-b-60" style="top:165px;width: 68vw;">
                <div class="panel-bar clearfix">
                    <div class="pull-left">
                        <i></i>零件信息
                    </div>
                </div>

                <div yb-table-fixed class="table-fixed-wrap" style="top:50px;">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{editInTbConf.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th ng-repeat="itemCol in editInTbConf.tableCol track by $index"
                                        width="{{itemCol.width}}">
                                        <div yb-thead-operate ng-model="itemCol"
                                            target-width="editInTbConf.scrollWidth"></div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="billDetail.detailList.length > 0">
                        <table class="table-fixed border-none" width="{{editInTbConf.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in billDetail.detailList track by $index">
                                    <td ng-repeat="itemCol in editInTbConf.tableCol track by $index"
                                        width="{{itemCol.width}}" title="{{item[itemCol.dataField]}}">

                                        <div class="spill-dots">
                                            {{item[itemCol.dataField]}}
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="billDetail.detailList.length === 0">暂时没有数据</div>
                </div>
            </div>
            <div class="main-area d-b-60" style="left: auto; width: 225px;top:165px;">
                <div class="panel-bar clearfix">
                    <div class="pull-left">
                        <i></i>审核意见
                    </div>
                </div>

                <div class="main-wrap p-b-lg over-flow-h" style="top:50px;">
                    <textarea yb-word-count max-size="500" class="form-control full" ng-model="auditMessage.value" placeholder="审核意见"></textarea>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-primary m-r-sm" ng-click="handleAudit('1')">通过</button>
                <button type="button" class="btn btn-primary m-r-sm" ng-click="handleAudit('2')">拒绝</button>
                <button type="button" class="btn btn-default m-r-sm" ng-click="cancel()">取消</button>
            </div>
        </div>
        <div tab heading="审核" active="activeFlag[9]" ng-if="activeFlag[9]">
            <form name="form" class="m-t-sm form-horizontal form-up-tb clearfix" novalidate>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">领料单号：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                        title="{{billDetail.headerInfo.requisitionNo || '-'}}">
                        {{billDetail.headerInfo.requisitionNo || "-"}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">单据类型：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                        title="{{billDetail.headerInfo.documentName || '-'}}">
                        {{billDetail.headerInfo.documentName || "-"}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">出库状态：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                        title="{{billDetail.headerInfo.status | ProgressStatus:'outDepot'}}">
                        {{billDetail.headerInfo.status | ProgressStatus:'outDepot'}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">制单人：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                        title="{{billDetail.headerInfo.createName || '-'}}">
                        {{billDetail.headerInfo.createName || "-"}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">制单时间：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                        title="{{(billDetail.headerInfo.createDate | YbDate:'yyyy-MM-dd HH:mm:ss') || '-'}}">
                        {{(billDetail.headerInfo.createDate | YbDate:'yyyy-MM-dd HH:mm:ss') || '-'}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">制单部门：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                        title="{{billDetail.headerInfo.createPartName || '-'}}">
                        {{billDetail.headerInfo.createPartName || "-"}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">移动类型：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                        title="{{billDetail.headerInfo.sapType || '-'}}">
                        {{billDetail.headerInfo.sapType || "-"}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">备注：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                        title="{{billDetail.headerInfo.note || '-'}}">
                        {{billDetail.headerInfo.note || "-"}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">需求时间：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{billDetail.headerInfo.requireTimeShow || '-'}}">
                        {{billDetail.headerInfo.requireTimeShow || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="isXF&&billDetail.headerInfo.type == 0">
                    <label class="col-xs-4 control-label max-w-100">领出工厂：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                           title="{{billDetail.headerInfo.outFactorySapCode || '-'}}">
                        {{billDetail.headerInfo.outFactorySapCode || "-"}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="isXF&&billDetail.headerInfo.type == 1">
                    <label class="col-xs-4 control-label max-w-100">领入工厂：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots"
                           title="{{billDetail.headerInfo.inFactorySapCode || '-'}}">
                        {{billDetail.headerInfo.inFactorySapCode || "-"}}
                    </label>
                </div>
            </form>
            <div class="main-area d-b-60" style="top:165px;width: 68vw;">
                <div class="panel-bar clearfix">
                    <div class="pull-left">
                        <i></i>零件信息
                    </div>
                </div>

                <div yb-table-fixed class="table-fixed-wrap" style="top:50px;">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{editOutTbConf.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th ng-repeat="itemCol in editOutTbConf.tableCol track by $index"
                                        width="{{itemCol.width}}">
                                        <div yb-thead-operate ng-model="itemCol"
                                            target-width="editOutTbConf.scrollWidth"></div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="billDetail.detailList.length > 0">
                        <table class="table-fixed border-none" width="{{editOutTbConf.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in billDetail.detailList track by $index">
                                    <td ng-repeat="itemCol in editOutTbConf.tableCol track by $index"
                                        width="{{itemCol.width}}" title="{{item[itemCol.dataField]}}">

                                        <div class="spill-dots">
                                            {{item[itemCol.dataField]}}
                                        </div>

                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="billDetail.detailList.length === 0">暂时没有数据
                    </div>
                </div>
            </div>
            <div class="main-area d-b-60" style="left: auto; width: 225px;top:165px;">
                <div class="panel-bar clearfix">
                    <div class="pull-left">
                        <i></i>审核意见
                    </div>
                </div>

                <div class="main-wrap p-b-lg over-flow-h" style="top:50px;">
                    <textarea yb-word-count max-size="500" class="form-control full" ng-model="auditMessage.value" placeholder="审核意见"></textarea>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-primary m-r-sm" ng-click="handleAudit('1')">通过</button>
                <button type="button" class="btn btn-primary m-r-sm" ng-click="handleAudit('2')">拒绝</button>
                <button type="button" class="btn btn-default m-r-sm" ng-click="cancel()">取消</button>
            </div>
        </div>
        <div tab heading="入库" active="activeFlag[10]" ng-if="activeFlag[10]">
            <div class="m-t-sm form-up-tb clearfix">
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span>领料单号</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{billDetail.headerInfo.requisitionNo || '-'}}">
                        {{billDetail.headerInfo.requisitionNo || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span>单据类型</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{billDetail.headerInfo.documentName || '-'}}">
                        {{billDetail.headerInfo.documentName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span>入库状态</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title='{{billDetail.headerInfo.status | ProgressStatus:"inDepot"}}'>
                        {{billDetail.headerInfo.status | ProgressStatus:"inDepot"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span>制单人</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{billDetail.headerInfo.createName || '-'}}">
                        {{billDetail.headerInfo.createName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span>制单时间</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{(billDetail.headerInfo.createDate | YbDate:'yyyy-MM-dd HH:mm:ss') || '-'}}">
                        {{(billDetail.headerInfo.createDate | YbDate:'yyyy-MM-dd HH:mm:ss') || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span>制单部门</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{billDetail.headerInfo.createPartName || '-'}}">
                        {{billDetail.headerInfo.createPartName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span>移动类型</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{billDetail.headerInfo.sapType || '-'}}">
                        {{billDetail.headerInfo.sapType || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span>备注</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{billDetail.headerInfo.note || '-'}}">
                        {{billDetail.headerInfo.note || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="isXF&&billDetail.headerInfo.type == 0">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span>领出工厂</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{billDetail.headerInfo.outFactorySapCode || '-'}}">
                        {{billDetail.headerInfo.outFactorySapCode || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="isXF&&billDetail.headerInfo.type == 1">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span>领入工厂</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{billDetail.headerInfo.inFactorySapCode || '-'}}">
                        {{billDetail.headerInfo.inFactorySapCode || "-"}}
                    </div>
                </div>
            </div>
            <div class="panel-bar clearfix">
                <div class="pull-left">
                    <i></i><span>零件信息</span>
                </div>
            </div>
            <div class="main-area d-b-60" style="top:140px;">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{inTbConf.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th ng-repeat="itemCol in inTbConf.tableCol track by $index" width="{{itemCol.width}}">
                                        <div yb-thead-operate ng-model="itemCol" target-width="inTbConf.scrollWidth"></div>
                                    </th>
                                    <th width="180" title="储位">储位</th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="billDetail.detailList.length > 0">
                        <table class="table-fixed border-none" width="{{inTbConf.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in billDetail.detailList track by $index">
                                    <td ng-repeat="itemCol in inTbConf.tableCol track by $index" width="{{itemCol.width}}">
                                        <div class="spill-dots" title="{{item[itemCol.dataField]}}">
                                            {{item[itemCol.dataField]}}
                                        </div>
                                    </td>
                                    <td class="wrapper-none" width="180">
                                        <div class="td-edit pos-r">
                                            <div yb-form-clear class="td-edit" ng-model="item.stockLocation" select-obj="selDepot(item)"
                                                clear-form="clearDepot(item)" tips-name="储位"
                                                title="{{item.stockLocation}}" ng-class="{'error': !!item.locationErr}">
                                            </div>
                                            <div class="pos-a tool-tips" ng-if="!!item.locationErr && !item.stockLocation">
                                                <i class="triangle"></i>
                                                <div class="msg">请选择储位</div>
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="billDetail.detailList.length === 0">暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-primary m-r-sm" ng-click="inboundSubmit()">确认入库</button>
                <button type="button" class="btn btn-default" ng-click="cancel()">取消</button>
            </div>
        </div>
        <div tab heading="已删除记录" active="activeFlag[11]" ng-if="activeFlag[11]">
            <div class="main-area"  style="top:35px">
                    <div yb-table-fixed class="table-fixed-wrap fix-left" ele-count="4" scroll-area="right">
                        <div class="th-fixed">
                            <table class="table-fixed border-none" >
                                <thead>
                                    <tr>
                                        <th ng-repeat="itemCol in tbConfDel.tableCol track by $index" width="{{itemCol.width}}"
                                            ng-show="!!itemCol.isShow && !!itemCol.isFixed">
                                            <div yb-thead-operate ng-model="itemCol" target-width="tbConfDel.fixedWidth"
                                                ></div>
                                        </th>
                                    </tr>
                                </thead>
                            </table>
                        </div>
                        <div class="th-scroll-x" >
                            <table class="table-fixed border-none" width="{{tbConfDel.scrollWidth}}">
                                <thead>
                                    <tr>
                                        <th ng-repeat="itemCol in tbConfDel.tableCol track by $index" width="{{itemCol.width}}"
                                            ng-show="!!itemCol.isShow && !itemCol.isFixed">
                                            <div yb-thead-operate ng-model="itemCol" target-width="tbConfDel.scrollWidth">
                                            </div>
                                        </th>
                                    </tr>
                                </thead>
                            </table>
                        </div>
                        <div class="td-scroll-y">
                            <table class="table-fixed border-none" >
                                <tbody>
                                    <tr ng-repeat="item in dataDelList track by $index" ng-click="selectRow($index)"
                                        ng-class="{'row-selected': $index === markInfo.curRow}">

                                        <td class="spill-dots" ng-repeat="itemCol in tbConfDel.tableCol track by $index"
                                            width="{{itemCol.width}}" ng-show="!!itemCol.isShow && !!itemCol.isFixed"
                                            title="{{item[itemCol.dataField]}}">
                                            <span
                                                ng-if="(!itemCol.clickFn && itemCol.type !== 'operate') || !!itemCol.clickFn && itemCol.type == 'synSap' && item[itemCol.dataField] != '同步失败'">{{item[itemCol.dataField]}}</span>
                                            <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)"
                                                ng-if="(!!itemCol.clickFn && itemCol.type != 'synSap') || (!!itemCol.clickFn && itemCol.type == 'synSap' && item[itemCol.dataField] == '同步失败')">
                                                {{item[itemCol.dataField]}}
                                            </a>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                        <div class="td-scroll" ng-show="dataDelList.length > 0" >
                            <table class="table-fixed border-none" width="{{tbConfDel.scrollWidth}}">
                                <tbody>
                                    <tr ng-repeat="item in dataDelList track by $index" ng-click="selectRow($index)"
                                        ng-class="{'row-selected': $index === markInfo.curRow}">
                                        <td class="spill-dots" ng-repeat="itemCol in tbConfDel.tableCol track by $index"
                                            width="{{itemCol.width}}" ng-show="!!itemCol.isShow && !itemCol.isFixed"
                                            title="{{item[itemCol.dataField]}}">
                                            <span
                                                ng-if="(!itemCol.clickFn && itemCol.type !== 'operate') || !!itemCol.clickFn && itemCol.type == 'synSap' && item[itemCol.dataField] != '同步失败'">{{item[itemCol.dataField]}}</span>
                                            <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn,'del')"
                                                ng-if="(!!itemCol.clickFn && itemCol.type != 'synSap') || (!!itemCol.clickFn && itemCol.type == 'synSap' && item[itemCol.dataField] == '同步失败')">
                                                {{item[itemCol.dataField]}}
                                            </a>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                        <div class="no-data w-full text-center p-t" ng-show="dataDelList.length === 0">暂时没有数据</div>
                    </div>
            </div>   
            <div class="bottom-area page-bar wrapper-y-sm clearfix">
               <div yb-page-info ng-model="pageInfoDel" yb-refresh="delHistory()"></div>
            </div>                         
        </div>
        <div tab heading="已删除领料单明细" active="activeFlag[12]" ng-if="activeFlag[12]">
            <div class="m-t-sm form-up-tb clearfix">
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">领料单号：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{billDetail.headerInfo.requisitionNo || '-'}}">
                        {{billDetail.headerInfo.requisitionNo || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">单据类型：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{billDetail.headerInfo.documentName || '-'}}">
                        {{billDetail.headerInfo.documentName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">出库状态：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{billDetail.headerInfo.status | ProgressStatus:'outDepot'}}">
                        {{billDetail.headerInfo.status | ProgressStatus:"outDepot"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-5 m-b-n text-right max-w-100 spill-dots">领入过账状态：</label>
                    <div class="col-xs-7 wrapper-none spill-dots" title="{{billDetail.headerInfo.postInStatus | ProgressStatus:'posting'}}">
                        {{billDetail.headerInfo.postInStatus | ProgressStatus:"posting"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-5 m-b-n text-right max-w-100 spill-dots">领出过账状态：</label>
                    <div class="col-xs-7 wrapper-none spill-dots" title="{{billDetail.headerInfo.postOutStatus | ProgressStatus:'posting'}}">
                        {{billDetail.headerInfo.postOutStatus | ProgressStatus:"posting"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">制单人：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{billDetail.headerInfo.createName || '-'}}">
                        {{billDetail.headerInfo.createName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">制单时间：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{(billDetail.headerInfo.createDate | YbDate:'yyyy-MM-dd HH:mm:ss') || '-'}}">
                        {{(billDetail.headerInfo.createDate | YbDate:'yyyy-MM-dd HH:mm:ss') || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">制单部门：</label>
                    <div class="col-xs-8 wrapper-none spill-dots"
                        title="{{billDetail.headerInfo.createPartName || '-'}}">
                        {{billDetail.headerInfo.createPartName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">移动类型：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{billDetail.headerInfo.sapType || '-'}}">
                        {{billDetail.headerInfo.sapType || "-"}} 
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">备注：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{billDetail.headerInfo.note || '-'}}">
                        {{billDetail.headerInfo.note || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">CRM单号：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{billDetail.headerInfo.crmOrder || '-'}}">
                        {{billDetail.headerInfo.crmOrder || "-"}}
                    </div>
                </div>
            </div>
            <div class="panel-bar clearfix">
                <div class="pull-left">
                    <i></i>零件信息
                </div>
            </div>

            <div class="main-area d-b-60" style="top:200px;">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x">
                        <thead>
                            <table class="table-fixed border-none" width="{{viewOutTbConf.scrollWidth}}">
                                <thead>
                                    <tr>
                                        <th ng-repeat="itemCol in viewOutTbConf.tableCol track by $index" width="{{itemCol.width}}">
                                            <div yb-thead-operate ng-model="itemCol" target-width="viewOutTbConf.scrollWidth"></div>
                                        </th>
                                    </tr>
                                </thead>
                            </table>
                    </div>
                    <div class="td-scroll" ng-show="billDetail.detailList.length > 0">
                        <table class="table-fixed border-none" width="{{viewOutTbConf.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in billDetail.detailList track by $index">
                                    <td ng-repeat="itemCol in viewOutTbConf.tableCol track by $index"
                                        width="{{itemCol.width}}" class="spill-dots"
                                        title="{{item[itemCol.dataField]}}">
                                        {{item[itemCol.dataField]}}
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="billDetail.detailList.length === 0">暂时没有数据
                    </div>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-primary m-r-sm"
                    ng-click="mandatoryFinish(billDetail.headerInfo.type,billDetail.headerInfo.requisitionNo, billDetail.headerInfo.id)"
                    ng-disabled="billDetail.headerInfo.status == 2 || billDetail.headerInfo.status == 3 || !btnPermission.mandatoryFinish"
                    title="{{!btnPermission.mandatoryFinish?'无权限执行此操作':''}}">结单</button>

                <button type="button" class="btn btn-default m-r-sm" ng-click="cancel()">返回</button>
            </div>
        </div>    
        <div tab heading="出库" active="activeFlag[13]" ng-if="activeFlag[13]">
            <div class="m-t-sm form-up-tb clearfix">
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span>领料单号</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{billDetail.headerInfo.requisitionNo || '-'}}">
                        {{billDetail.headerInfo.requisitionNo || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span>单据类型</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{billDetail.headerInfo.documentName || '-'}}">
                        {{billDetail.headerInfo.documentName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span>入库状态</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title='{{billDetail.headerInfo.status | ProgressStatus:"inDepot"}}'>
                        {{billDetail.headerInfo.status | ProgressStatus:"inDepot"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span>制单人</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{billDetail.headerInfo.createName || '-'}}">
                        {{billDetail.headerInfo.createName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span>制单时间</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{(billDetail.headerInfo.createDate | YbDate:'yyyy-MM-dd HH:mm:ss') || '-'}}">
                        {{(billDetail.headerInfo.createDate | YbDate:'yyyy-MM-dd HH:mm:ss') || '-'}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span>制单部门</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{billDetail.headerInfo.createPartName || '-'}}">
                        {{billDetail.headerInfo.createPartName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span>移动类型</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{billDetail.headerInfo.sapType || '-'}}">
                        {{billDetail.headerInfo.sapType || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span>备注</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{billDetail.headerInfo.note || '-'}}">
                        {{billDetail.headerInfo.note || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="isXF&&billDetail.headerInfo.type == 0">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span>领出工厂</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{billDetail.headerInfo.outFactorySapCode || '-'}}">
                        {{billDetail.headerInfo.outFactorySapCode || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm" ng-if="isXF&&billDetail.headerInfo.type == 1">
                    <label class="col-xs-4 m-b-n text-right max-w-100"><span>领入工厂</span>：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{billDetail.headerInfo.inFactorySapCode || '-'}}">
                        {{billDetail.headerInfo.inFactorySapCode || "-"}}
                    </div>
                </div>
            </div>
            <div class="panel-bar clearfix">
                <div class="pull-left">
                    <i></i><span>零件信息</span>
                </div>
            </div>
            <div class="main-area d-b-60" style="top:140px;">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{inTbConf.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th ng-repeat="itemCol in inTbConf.tableCol track by $index" width="{{itemCol.width}}">
                                        <div yb-thead-operate ng-model="itemCol" target-width="inTbConf.scrollWidth"></div>
                                    </th>
                                    <th width="180" title="储位">储位</th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="billDetail.detailList.length > 0">
                        <table class="table-fixed border-none" width="{{inTbConf.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in billDetail.detailList track by $index">
                                    <td ng-repeat="itemCol in inTbConf.tableCol track by $index" width="{{itemCol.width}}">
                                        <div class="spill-dots" title="{{item[itemCol.dataField]}}">
                                            {{item[itemCol.dataField]}}
                                        </div>
                                    </td>
                                    <td class="wrapper-none" width="180">
                                        <div class="td-edit pos-r">
                                            <div yb-form-clear class="td-edit" ng-model="item.stockLocation" select-obj="outDepot(item)"
                                                clear-form="clearDepot(item)" tips-name="储位"
                                                title="{{item.stockLocation}}" ng-class="{'error': !!item.locationErr}">
                                            </div>
                                            <div class="pos-a tool-tips" ng-if="!!item.locationErr && !item.stockLocation">
                                                <i class="triangle"></i>
                                                <div class="msg">请选择储位</div>
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="billDetail.detailList.length === 0">暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-primary m-r-sm" ng-click="outboundSubmit()">确认出库</button>
                <button type="button" class="btn btn-default" ng-click="cancel()">取消</button>
            </div>
        </div>            
    </div>
</div>
